﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MongoDB.Bson;

namespace IFTRUE.FMS.Model
{
    /// <summary>
    /// 作用：用户信息实体
    /// 作者：iftrue
    /// 日期：2013-08-19
    /// </summary>
    [Serializable]
   public class UserInfo
    {
        private ObjectId _id;
        /// <summary>
        /// 用户ID
        /// </summary>
        public ObjectId Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private string _account;
        /// <summary>
        /// 用户帐号
        /// </summary>
        public string Account
        {
            get { return _account; }
            set { _account = value; }
        }
        private string _password;
        /// <summary>
        /// 用户密码
        /// </summary>
        public string Password
        {
            get { return _password; }
            set { _password = value; }
        }
        private string _name;
        /// <summary>
        /// 用户名称
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        private string _phone;
        /// <summary>
        /// 联系电话
        /// </summary>
        public string Phone
        {
            get { return _phone; }
            set { _phone = value; }
        }
        private string _folder;
        /// <summary>
        /// 管理文件夹
        /// </summary>
        public string Folder
        {
            get { return _folder; }
            set { _folder = value; }
        }
        private bool _isUse;
       /// <summary>
       /// 帐号是否可用
       /// </summary>
        public bool IsUse
        {
            get { return _isUse; }
            set { _isUse = value; }
        }
        private DateTime _createDate;
        /// <summary>
        /// 帐号创建时间
        /// </summary>
        [MongoDB.Bson.Serialization.Attributes.BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime CreateDate
        {
            get { return _createDate; }
            set { _createDate = value; }
        }
        private DateTime _lastDate;
       /// <summary>
       /// 最后访问时间
        /// </summary>
        [MongoDB.Bson.Serialization.Attributes.BsonDateTimeOptions(Kind = DateTimeKind.Local)]
        public DateTime LastDate
        {
            get { return _lastDate; }
            set { _lastDate = value; }
        }
    }
}
